using System;
using System.Collections.Generic;
using System.Text;

namespace IWS.Lib.SingleSignOn
{
	internal class Instance
	{
		/// <summary>
		/// Get an instance of the current data provider. 
		/// </summary>
		/// <remarks>This function decides which kind of data provider to instanciate by cehcking the LogType in the Application configuration. </remarks>
		/// <returns></returns>
		public static IDataProvider getDataProvider()
		{
			return new IWS.Data.Sql.SingleSignOn.DataProvider(System.Configuration.ConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString) as IDataProvider;
		}
	}
}
